package com.bifang.common.constant.enums.common;
/** 接口对应审核工作流类型 */
public enum AuTypeEnum {
    START("start", "启动节点(经办功能)"),
    AUDIT("audit", "审核节点(审核功能)"),
    END("end", "结束节点"),
    OTHER("other", "其他（跟流程无关）");
    private String type;
    private String text;

    AuTypeEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public String getType() {
        return this.type;
    }

    public String getText() {
        return this.text;
    }

    public static AuTypeEnum getByType(String type) {
        for (AuTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equalsIgnoreCase(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
